﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Transiteers.Models
{
    public partial class TransiteersDB
    {

        public Client GetClient(int clientID)
        {
            return BaseDB.Clients.FirstOrDefault(c => c.ID == clientID);
        }

        public void Add(Client client)
        {
            BaseDB.Clients.Add(client);
            BaseDB.SaveChanges();
        }

        public void Remove(Client client)
        {
            BaseDB.Clients.Remove(client);
        }

    }
}